﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
namespace CI.Caja.DL
{
    public class Utility
    {
        public SqlConnection getConnection()
        {
            try
            {
                //SqlConnection cnx = new SqlConnection(@"Server=.;Database=bdclinica;User Id=sa;Password=123456;");
                SqlConnection cnx = new SqlConnection(@"Data Source=.\\SqlExpress;Initial Catalog=BDCLINICA;Integrated Security=SSPI;"); 
                return cnx;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
        public static string ObtenerConexion()
        {
            return "Data Source=.\\SqlExpress;Initial Catalog=BDCLINICA;Integrated Security=SSPI;";
        }
    }
}
